<template>
  <ul>
    <li v-for="(item, index) in arr" :key="index">{{ item }}</li>
    <button @click="fun">点我</button>
  </ul>
</template>

<script>
export default {
  data() {
    return {
      arr: ["帅哥", "美女", "程序猿"],
    };
  },
  methods: {
    fun() {
      this.arr.push(this.arr[0]);
      this.arr.splice(0, 1);
    },
  },
};
</script>

<style>
</style>